package com.aisino.service.aop;

import com.aisino.service.OrderService;
import com.aisino.service.ScoreService;
import com.aisino.service.UserService;
import org.springframe.annotation.Aspect;

@Aspect(value = {ScoreService.class})
public class UserAspect {

    public Object before(String methodName,Object[] args){
        if(!methodName.equals("toString")&&!methodName.equals("hashCode")){
            System.out.println("before:"+methodName);
        }
        return null;
    }

    public Object after(String methodName,Object[] args){
        if(!methodName.equals("toString")&&!methodName.equals("hashCode")){
            System.out.println("after:"+methodName);
        }
        return null;
    }
}
